package com.fhz.module_main.repository

import androidx.lifecycle.LiveData
import com.fhz.loginmvvm.callback.ApiResponse
import com.fhz.module_main.entity.RecommendEntity
import com.fhz.module_main.entity.UserEntity
import com.fhz.mvvm.dataSource.local.IndexLocalDataSource
import com.fhz.mvvm.dataSource.retrofit.IndexRetrofitService
import com.fhz.mvvm.dataSource.retrofit.RecommendRetrofitService
import javax.inject.Inject

/**
 * 时间:2023/4/25
 * @author Mr.Feng
 * 简述: TODO
 */
class RecommendRepository @Inject constructor (
    private val retrofitService: RecommendRetrofitService
) {

    private  val TAG = "RecommendRepository"
    //登录一定是从网络请求
    fun getRecommend() : LiveData<ApiResponse<RecommendEntity>> {
        return retrofitService.getRecommend()
    }

//    suspend fun insertUser(user: User){
//        userLocalDataSource.insertUser(user)
//    }


}